﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ArtheaEngine.Model;
using ArtheaEngine;

namespace ArtheaServer.Commands
{
	public class SaveCommand : Command
	{
        public SaveCommand() : base("save", "Saves your character.") { }

        public override void Execute(Character ch, Argument argument)
        {
            if (!(ch is Player)) return;

            ch.Save();

            ch.WriteLine(ch.Name + " saved.");
        }
    }
}
